package com.yk.anima.api;

import com.yk.anima.pojo.ProductsDog;
import com.yk.anima.response.QueryResponseResult;
import com.yk.anima.response.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;

import java.util.List;

/**
 * @author xiaokai
 * @create 2021-05-13 09:29:55
 * @desc...对狗进行管理
 */
@Api(value = "对狗管理",description = "对狗进行管理")
public interface ProductsDogApi {

    @ApiOperation("查询所有")
    public List<ProductsDog> findAll();

    @ApiOperation("根据Id查询")
    public ProductsDog findById(int id);

    @ApiOperation("添加狗")
    public ResponseResult save(ProductsDog productsDog);

    @ApiOperation("根据Id删除")
    public ResponseResult deleteById(int id);

    @ApiOperation("根据Id修改狗")
    public ResponseResult update(@ApiParam("当前宠物ID") int id,@ApiParam("当前用户修改后的数据") ProductsDog productsDog);

    @ApiOperation("分页查询")
    public QueryResponseResult findByPage( int page,int size, String name);


}
